import request from '@/utils/request'

// 查询会员基本信息列表
export function listMemberbasis(query) {
  return request({
    url: '/member/memberbasis/list',
    method: 'get',
    params: query
  })
}

// 查询会员基本信息详细
export function getMemberbasis(id) {
  return request({
    url: '/member/memberbasis/' + id,
    method: 'get'
  })
}

// 用户密码重置
export function resetUserPwd(id, passWord) {
  const data = {
    id,
    passWord
  }
  return request({
    url: '/member/memberbasis/resetPwd',
    method: 'put',
    data: data
  })
}
// 新增会员基本信息
export function addMemberbasis(data) {
  return request({
    url: '/member/memberbasis',
    method: 'post',
    data: data
  })
}

// 修改会员基本信息
export function updateMemberbasis(data) {
  return request({
    url: '/member/memberbasis',
    method: 'put',
    data: data
  })
}

// 删除会员基本信息
export function delMemberbasis(id) {
  return request({
    url: '/member/memberbasis/' + id,
    method: 'delete'
  })
}

// 导出会员基本信息
export function exportMemberbasis(query) {
  return request({
    url: '/member/memberbasis/export',
    method: 'get',
    params: query
  })
}
